package com.oristand.sqlmonitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 数据源配置实体
 *
 * @author wangmeng
 * @since 2023/7/5
 */
@Data
@Accessors(chain = true)
@TableName("t_datasource")
public class DbEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("jdbc_url")
    private String jdbcUrl;

    @TableField("port")
    private String port;

    @TableField("driver_name")
    private String driverName;

    @TableField("database_name")
    private String databaseName;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;
}
